package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.Banner;
import com.stlm2.dems.dao.BannerDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("bannerDao")
public class BannerDaoImpl extends BaseDaoImpl<Banner> implements BannerDao {

    @Override
    public List<Banner> getSixBySort() {
        return selectList("querySortSix","");
    }

    @Override
    public List<Banner> getThree() {
        return selectList("getThree","");
    }

    @Override
    public List<Banner> getSix() {
        return selectList("getSix","");
    }

    //按类型查询
    @Override
    public List<Banner> getByType(Integer typeValue) {
        return selectList("getByType",typeValue);
    }
}